<template>
	<view>
		<!-- #ifdef H5 -->
		<input type="text" placeholder="请输入内容" class="box" @click="clickBox"/>
		<!-- #endif -->
		<!-- #ifdef MP-WEIXIN -->
		 <uni-countdown :day="1" :hour="1" :minute="12" :second="40" class="box" @click="clickBox"></uni-countdown>
		<!-- #endif -->
	</view>
</template>

<script lang="ts" setup>
	const clickBoxFn = () => {
	    // #ifdef H5
	   console.log('我是小程序端打印输出')
	    // #endif
	    // #ifdef MP-WEIXIN
	    console.log('我是小程序端打印输出')
	    // #endif
	  }
</script>
	
<style lang="scss" scoped>
	.box {
	    width: 300px;
	    height: 300px;
	    /* #ifdef MP-WEIXIN */
	    background-color: purple;
	    border-radius: 50%;
	    /* #endif */
	    /* #ifdef H5 */
	    background-color: green;
	    /* #endif */
	  }
</style>